﻿@{
    ViewBag.Title = "GroupIA";
    Layout = "~/Views/Shared/_Index.cshtml";
    
    //头部导航
    List<LeEdu.MODEL.Columnss> stg = ViewBag.stb;
    //查找子栏目
    List<LeEdu.MODEL.Columnss> caazi = ViewBag.collist;
    //热门
    List<LeEdu.MODEL.Information> infolist = ViewBag.infore;
    //推荐
    List<LeEdu.MODEL.Information> infotui = ViewBag.infotui;
}

<div id="content-container" class="container">

    <div class="es-tabs article-list-header">

        <div class="tab-header">
            <ul class="clearfix">
                <li class=""><a href="#">资讯频道</a></li>
                @for (int i = 0; i < stg.Count(); i++)
                {
                    <li class="@(ViewBag.id==stg[i].ColumnssID? "active" : "")">
                <a href="/Group/GroupIA/@stg[i].ColumnssID">@stg[i].CLNAME </a></li>
                }                         
            </ul>
        </div>


        <div class="tab-body">
            <ul class="clearfix">
                <li class="all"><a href="#">全部</a></li>
                @foreach (var item in caazi)
                {
                    <li><a href="/Group/GroupIA/?id=@item.ColumnssID">@item.CLNAME </a></li>
                }
            </ul>
        </div>
    </div>

    <div class="article-list-body row">
        <div class="col-md-8 article-list-mian">
            @foreach (var item in ViewBag.infolist as List<LeEdu.MODEL.Information>)
            {
                <section class="es-section">
                    <article class="article-item">
                        <div class="article-metas clearfix">
                            <div class="pull-left">
                                <div class="date">
                                    <div class="day">@item.INOLDTIME.Day</div>
                                    <div class="month">@item.INOLDTIME.Month 月</div>
                                </div>
                            </div>
                            <div class="metas-body">
                                <p>@item.Columnss.CLNAME</p>
                                <h2 class="title"><a class="link-dark" href="/Group/article/@item.ID">@item.INTITLE</a></h2>
                            </div>
                        </div>
                        <div class="media">
                            <div class="media-left">
                                <a href="/Group/article/@item.ID">
                                    <img class="media-object" style="width:216px;height:120px;" src="~/Img/@item.INIMAGE" alt="@item.INTITLE">
                                </a>
                            </div>
                            <div class="media-body">
                              @item.INCONTENT
                            </div>
                        </div>
                    </article>
                </section>
            }
            
        </div>

        <aside class="col-md-4 article-sidebar">
            <!-- 热门资讯 -->
            <div class="panel panel-default hot-article">
                <div class="panel-heading">
                    <h3 class="panel-title"><i class="es-icon es-icon-whatshot"></i>热门资讯</h3>
                </div>
                <div class="panel-body">
                    @for (int i = 0; i < infolist.Count(); i++)
                    {
                        <div class="media media-number">
                            <div class="media-left">
                                <span class="num">@(i + 1)</span>
                            </div>
                            <div class="media-body">
                                <a class="link-dark" href="/Group/article/@infolist[i].ID" title="123">@infolist[i].INTITLE</a>
                            </div>
                        </div>
                    }
                    
                </div>
            </div>
            <!-- 热门标签 -->

            <div class="panel panel-default hot-tag">
                <div class="panel-heading">
                    <h3 class="panel-title"><i class="es-icon es-icon-loyalty"></i>热门标签</h3>
                </div>
                <div class="panel-body">

                    <a class="btn-tag" href="#"> kj</a>

                    <a class="btn-tag" href="#"> Asp.Net</a>

                    <a class="btn-tag" href="#"> C#</a>

                    <a class="btn-tag" href="#"> Unity3D</a>
                </div>
            </div>

            <!-- 热门评论 -->
            <div class="panel panel-default hot-comments">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        <i class="es-icon es-icon-textsms"></i>热门评论
                    </h3>
                </div>
                <div class="panel-body">
                    <div class="empty">一个评论都没有！</div>
                </div>
            </div>
            <!-- 推荐资讯 -->
            <div class="panel panel-default recommend-article">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        <i class="es-icon es-icon-language"></i>推荐资讯
                    </h3>
                </div>
                <div class="panel-body">
                    @for (int i = 0; i < infotui.Count(); i++)
                    {
                        <div class="media media-number">
                            <div class="media-left">
                                <span class="num">@(i + 1)</span>
                            </div>
                            <div class="media-body">
                                <a class="link-dark" href="/Group/article/@infotui[i].ID" title="123">@infotui[i].INTITLE</a>
                            </div>
                        </div>
                    }
                    
                </div>
            </div>
        </aside>
    </div>

</div>

